import showroomData from "./showroomData";

export const initShowroomParams = (boothPlatform) => {
  //查询参数
  showroomData.tParam.title = "";
  showroomData.tParam.name = "";
  showroomData.tParam.type = null;
  showroomData.tParam.state = null;
  showroomData.tParam.platform = null;
  showroomData.tParam.tag = "";
  showroomData.tParam.classificationId = "";
  showroomData.tParam.classificationLevel = null;
  showroomData.tParam.shortLink = "";
  //选中数据
  showroomData.tData.selectedId = "";
  showroomData.tData.selectedList.splice(0);
}

export const initShowroomPage = () => {
  showroomData.tPage.total = 0;
  showroomData.tPage.pageNum = 1;
  showroomData.tPage.pageSize = 40;
  showroomData.tPage.options.splice(0);
  showroomData.tPage.options.push(...[40, 60, 80, 120]);
}
